(C) 1996 AROS - The Amiga Replacement OS


NAME
void Enqueue()
SYNOPSIS
struct List * list
struct Node * node

LOCATION
In SysBase at offset 45
FUNCTION
Sort a node into a list. The sort-key is the field node->ln_Pri.

INPUTS
list
Insert into this list. The list has to be in descending order in respect to the field ln_Pri of all nodes.
node
This node is to be inserted. Note that this has to be a complete node and not a MinNode !
RESULT
The new node will be inserted before nodes with the same or lower priority.

NOTES
The list has to be in descending order in respect to the field ln_Pri of all nodes.

EXAMPLE
struct List * list;
struct Node * node;

node->ln_Pri = 5;

// Sort the node at the correct place into the list
Enqueue (list, node);

BUGS
SEE ALSO
INTERNALS
HISTORY
07.05.1997 aros
Use correct loop variable next, not node
30.04.1997 aros
Optimized header files

Polish

29.04.1997 aros
Polish.

Optimized code.

01.01.1997 ldp
Committed Amiga native (support) code

Changed clib to proto

10.12.1996 aros
Moved all #include's in the first column so makedepend can see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
21.10.1996 aros
Changed struct SysBase to struct ExecBase
13.08.1996 digulla
Replaced __AROS_LA by __AROS_LHA Replaced some __AROS_LH*I by __AROS_LH* Sorted and added includes
01.08.1996 digulla
Added standard header for all files
01.08.1996 digulla
Added copyright notics and made headers conform
01.08.1996 digulla
Replaced hacks with commented versions
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS